<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.bootcdn.net/ajax/libs/Swiper/5.3.0/css/swiper.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/3.6.2/animate.min.css" rel="stylesheet" />
    <title>Document</title>
    <style>
        .swiper-container {
            width: 600px;
            height: 1000px;
            border: solid;
        }
        
        .swiper-slide {
            background-color: aqua;
        }
        
        .box {
            background-color: blueviolet;
            width: 100%;
            height: 400px;
        }
    </style>
</head>

<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <h1 class="ani" swiper-animate-effect=" flash" swiper-animate-duration="2.5s" swiper-animate-delay="0.3s">内容1</h1>
            </div>
            <div class="swiper-slide">
                <h1 class="ani" swiper-animate-effect=" flash" swiper-animate-duration="2.5s" swiper-animate-delay="0.3s">内容2</h1>
            </div>
            <div class="swiper-slide">
                <h1 class="ani" swiper-animate-effect=" flash" swiper-animate-duration="2.5s" swiper-animate-delay="0.3s">内容3</h1>
            </div>
        </div>

    </div>

    <div class="box wow swing" data-wow-iteration="3" data-wow-duration="1.5s" data-wow-delay="0.5s">
        我是演示wow用的
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/wow/1.1.2/wow.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/Swiper/5.3.0/js/swiper.min.js"></script>
    <script src="./swiper.animate1.0.3.min.js"></script>
    <script>
        //Swiper5
        var mySwiper = new Swiper('.swiper-container', {
            on: {
                init: function() {
                    swiperAnimateCache(this); //隐藏动画元素 
                    swiperAnimate(this); //初始化完成开始动画
                },
                slideChangeTransitionEnd: function() {
                    swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
                    //this.slides.eq(this.activeIndex).find('.ani').removeClass('ani'); 动画只展现一次，去除ani类名
                }

            }
        });

        new WOW().init();
    </script>
</body>

</html>